package com.ruipengkj.component;

import javax.swing.JDialog;
import javax.swing.UIManager;

public class RPShowDialog{

	private static final long serialVersionUID = 1L;

	private JDialog dialog;
	private String titel="提示";
	public static int YES_NO_OPTION=1;
	
//	public static int showConfirmDialog(String titel,String mag,int option){
//		if(option==YES_NO_OPTION){
//			
//		}
//	}
	public static void main(String[] args) {
		java.util.Enumeration keys = UIManager.getDefaults().keys();
		while (keys.hasMoreElements()) {
			Object key = keys.nextElement();
			Object value = UIManager.get(key);
			if(key.toString().contains("OptionPane")){
				System.out.println(key+"-------------"+value);
			}
			
		
		}
	}
	private void showDialog(){
		dialog= new JDialog();
		dialog.setTitle(titel);
		dialog.setSize(300, 200);
		dialog.setVisible(true);
	}
}
